package com.sian.datasource;

import java.sql.Array;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;

public class C1Array implements java.sql.Array{
     
    protected Array passthru;
    protected C1Statement statement;
    protected String query;
    protected String preparedQuery;
    protected C1Factory factory;
    
    public C1Array(C1Factory factory, Array array, C1Statement statement, String preparedQuery, String query) {
	    this.factory = factory;
        this.passthru = array;
        this.statement = statement;
        this.query = query;
        this.preparedQuery = preparedQuery;
    }
    
    public Object getArray() throws java.sql.SQLException {
        return passthru.getArray();
    }
    
    public Object getArray(Map p0) throws java.sql.SQLException {
        return passthru.getArray(p0);
    }
    
    public Object getArray(long p0, int p1) throws java.sql.SQLException {
        return passthru.getArray(p0,p1);
    }
    
    public Object getArray(long p0, int p1,Map map) throws java.sql.SQLException {
        return passthru.getArray(p0,p1,map);
    }
    
    public int getBaseType() throws java.sql.SQLException {
        return passthru.getBaseType();
    }
    
    public String getBaseTypeName() throws java.sql.SQLException {
        return passthru.getBaseTypeName();
    }
    
    public java.sql.ResultSet getResultSet() throws java.sql.SQLException {
        return factory.getResultSet(passthru.getResultSet(),statement,preparedQuery,query);
    }
    
    public java.sql.ResultSet getResultSet(Map<String, Class<?>> p0) throws java.sql.SQLException {
        return factory.getResultSet(passthru.getResultSet(p0),statement,preparedQuery,query);
    }
    
    public java.sql.ResultSet getResultSet(long p0, int p1) throws java.sql.SQLException {
        return factory.getResultSet(passthru.getResultSet(p0,p1),statement,preparedQuery,query);
    }
    
    public java.sql.ResultSet getResultSet(long p0, int p1, Map<String, Class<?>> p2) throws java.sql.SQLException {
        return factory.getResultSet(passthru.getResultSet(p0,p1,p2),statement,preparedQuery,query);
    }

	
	public void free() throws SQLException {
		// TODO Auto-generated method stub
		
	}
}

